package viewIHM;

import java.util.Scanner;

public class GuiTest {

	public static void main(String[] args) {
		ChatGUIView testGUI = new ChatGUIView();
		testGUI.setVisible(true);//On la rend visible
		Scanner sc = new Scanner(System.in);
		for (int n=0;n<5;n++){
			System.out.println("Saisir nom");
			sc.nextLine();
			String str = sc.nextLine();
			System.out.println("Saisir 1 = Connect, 2 = Disconnect");
			int choix = sc.nextInt();
			if (choix==1){
				testGUI.addUserInList(str);
			}
			else if (choix==2){
				testGUI.removeUserInList(str);
			}
		}
		testGUI.displayChoiceFile("toto","tata");
		while(true){
			String str = sc.nextLine();
			testGUI.displayMessage("Mwagagagagga", str);
		}
	}
}
